.invite-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;

  .invite-nav {
    flex-shrink: 0;
  }

  .invite-container {
    padding: 0 12px;
    margin: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .invite-section {
    margin-bottom: 20px;
    flex-shrink: 0;

    .invite-title {
      font-size: 16px;
      margin: 15px 0;

      .invite-count {
        color: #666;
        margin-left: 8px;
      }
    }

    .invite-grid {
      display: flex;
      justify-content: space-around;
      margin-bottom: 20px;

      .invite-circle-container {
        display: flex;
        flex-direction: column;
        align-items: center;

        .invite-circle {
          width: 90px;
          height: 90px;
          border-radius: 50%;
          overflow: hidden;

          &.filled {
            background-color: #f8f8f8;
          }

          &.empty-circle {
            border: 1px dashed #ccc;
          }
        }

        .invitee-name {
          font-size: 14px;
          color: #333;
        }

        .cancel-btn {
          margin-top: 12px;
          color: #999 !important;
          border-color: #d9d9d9 !important;
          background: #f5f5f5 !important;
          min-width: 80px;
          height: 32px;
          border-radius: 16px !important;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 14px;
          padding: 0 16px;

          &.active {
            color: #fff !important;
            background: #d47072 !important;
            border-color: #ff4d4f !important;
          }
        }
      }
    }
  }

  .divider {
    height: 1px;
    background-color: #eee;
    margin: 8px 0 20px;
  }

  .recommend-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;

    .recommend-title {
      font-size: 16px;
      margin: 15px 0;
      flex-shrink: 0;
    }

    .scroll-container {
      flex: 1;
      overflow-y: auto;
      height: 100%;
      max-height: calc(100vh - 300px);
    }

    .recommend-item {
      display: flex;
      align-items: center;
      height: 90px;
      padding: 12px 0;

      .avatar-circle {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        overflow: hidden;
        border: 1px solid #eee;
        background: #f8f8f8;

        .empty-avatar {
          width: 100%;
          height: 100%;
          background: #f0f0f0;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }

      .user-info {
        flex: 1;
        margin-left: 16px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;

        .name-wrapper {
          display: flex;
          align-items: center;
          gap: 8px;

          .name {
            font-weight: 600;
            font-family: '黑体', sans-serif;
            color: #333;
            font-size: 16px;
          }

          .level-tag {
            font-size: 12px !important;
            color: #333 !important;
            padding: 2px 6px !important;
          }
        }

        .company {
          color: #666;
          font-size: 12px;
        }

        .stats {
          color: #999;
          font-size: 12px;
        }
      }

      .invite-btn {
        background: #e6f7ff !important;
        border-color: #91d5ff !important;
        width: 80px;
        align-self: center;
        min-width: 80px;
        height: 32px;
        border-radius: 16px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        padding: 0 16px;
        white-space: nowrap; /* 防止文字换行 */
        min-width: 80px; /* 设置最小宽度以适应文字 */

        &[disabled] {
          background: #f5f5f5 !important;
        }
      }
    }
  }
}

.invite-title {
  display: flex;
  align-items: center;
  gap: 8px;

  .save-btn {
    margin-left: auto;
    font-size: 12px;
    padding: 0 12px;
    height: 32px;
    line-height: 32px;
    background: #e6f7ff;
    border: none;
    color: #333;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.invite-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.recommend-item {
  .van-icon-success {
    color: #07c160;
    margin-right: 4px;
  }
}

// 独立样式（无法嵌套的部分）
.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

// 新增样式
.scroll-container {
  height: 400px;
  overflow-y: auto;
}

.loading {
  text-align: center;
  padding: 10px;
  color: #999;
}

.no-more-data {
  text-align: center;
  padding: 10px;
  color: #999;
}